package com.errands.cn.utils;

/**
 * 返回给前台的 json 对象
 * Created by dyw770 on 2017/4/19.
 */
public class Json {
    /**
     * 状态码
     * 返回状态成功
     */
    public static final int TATUS_CODE_SUEECSS = 0;

    /**
     * 状态码
     * 返回状态失败
     */
    public static final int TATUS_CODE_ERROR = 1;

    /**
     * 状态码
     * 返回状态警告
     */
    public static final int TATUS_CODE_WARN = 2;

    /**
     * 状态码
     * 返回状态 未登录
     */
    public static final int TATUS_CODE_NO_LOGIN = 3;


    //信息
    private String msg = "";

    //是否成功
    private boolean success = false;

    //携带的对象
    private Object obj = null;


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
}